﻿using CNFM_CROCODILE_LOGO.Core.Domain.Current;
using CNFM_CROCODILE_LOGO.Core.Domain.Entity;
using CNFM_CROCODILE_LOGO.Core.Repository;
using CNFM_CROCODILE_LOGO.Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CNFM_CROCODILE_LOGO.Services.Implementations
{
    public class APPCrocodileUserServices : IAPPCrocodileUserServices
    {
        private IEfRepository _rep;
        public APPCrocodileUserServices(IEfRepository rep)
        {
            this._rep = rep;
        }

        /// <summary>
        /// 用户列表
        /// </summary>
        /// <returns></returns>
        public ReturnValueModel GetUserAll()
        {
            var userAll = _rep.Where<CrocodileUser>(p => p.Status == 0).ToList();

            return new ReturnValueModel { Code = 200, Msg = "success", Result = new { Data = userAll } };
        }
    }
}
